package com.baizhi.dao;

import com.baizhi.entity.Department;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepartmentDao {

    public void insert(Department department);
    public void update(Department department);

    public void delete(int[] ids);
    public void deleteOne(int id);
    public int selectTotal(@Param("name")String name);
    public List<Department> selectDepartmentByPage(@Param("start")int start,
                                                   @Param("pageSize")int pageSize,
                                                   @Param("name")String name);

}
